package cn.com.self.apis.member.entity;

import cn.com.selfsoft.smartcity.commons.entity.AbstractEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author liangwt
 * @since 2021-01-10
 */
@ApiModel(value = "修改密码信息类")
public class UMemberUpdate extends AbstractEntity implements Serializable {

    private static final long serialVersionUID=1L;
    /**
     * 原用户密码
     */
    @NotNull(message = "原密码不能为空")
    @NotBlank(message = "原密码不能为空")
    @ApiModelProperty(value = "原用户密码")
    private String oldPassword;

    /**
     * 新用户密码
     */
    @NotNull(message = "新密码不能为空")
    @NotBlank(message = "新密码不能为空")
    @ApiModelProperty(value = "新用户密码")
    private String newPassword;

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }
}
